The Design Notes API > The Design Notes JavaScript API > MMNotes.open()

 

MMNotes.open()

Description

Opens the Design Notes file associated with the specified file, or creates one if none exists.

Arguments

filePath, {bForceCreate}

The first argument is the path to the main file with which the Design Notes file is associated, expressed as a file:// URL.
The second argument is a Boolean value indicating whether to create the Note even if Design Notes is turned off for the site or if filePath is not associated with any site.

Returns

The file handle for the Design Notes file, or zero (0) if the file was not opened or created.

Example

See MMNotes.set().